package redis

type RedisMode int

const (
	ModeSingle  RedisMode = 1
	ModeCluster RedisMode = 2
)

type ConsumeFunc func(channel, pattern string, data string) error

const (
	REDIS_CMD_SADD            = "SADD"
	REDIS_CMD_SCARD           = "SCARD"
	REDIS_CMD_SISMEMBER       = "SISMEMBER"
	REDIS_CMD_SMEMBERS        = "SMEMBERS"
	REDIS_CMD_SREM            = "SREM"
	REDIS_CMD_HSET            = "HSET"
	REDIS_CMD_HGET            = "HGET"
	REDIS_CMD_HMSET           = "HMSET"
	REDIS_CMD_HMGET           = "HMGET"
	REDIS_CMD_HDEL            = "HDEL"
	REDIS_CMD_HGETALL         = "HGETALL"
	REDIS_CMD_SET             = "SET"
	REDIS_CMD_SETNX           = "SETNX"
	REDIS_CMD_SETEX           = "SETEX"
	REDIS_CMD_GET             = "GET"
	REDIS_CMD_TTL             = "TTL"
	REDIS_CMD_STRLEN          = "STRLEN"
	REDIS_CMD_EXPIRE          = "EXPIRE"
	REDIS_CMD_DELETE          = "DEL"
	REDIS_CMD_KEYS            = "KEYS"
	REDIS_CMD_HKEYS           = "HKEYS"
	REDIS_CMD_EXISTS          = "EXISTS"
	REDIS_CMD_PERSIST         = "PERSIST"
	REDIS_CMD_ZADD            = "ZADD"
	REDIS_CMD_ZREM            = "ZREM"
	REDIS_CMD_ZRANGE          = "ZRANGE"
	REDIS_CMD_ZRANGE_BY_SCORE = "ZRANGEBYSCORE"
	REDIS_CMD_WITHSCORES      = "WITHSCORES"
	REDIS_CMD_INCR            = "INCR"
	REDIS_CMD_DECR            = "DECR"
	REDIS_CMD_INCRBY          = "INCRBY"
	REDIS_CMD_DECRBY          = "DECRBY"
	REDIS_CMD_INCRBYFLOAT     = "INCRBYFLOAT"
	REDIS_CMD_DECRBYFLOAT     = "DECRBYFLOAT"
	REDIS_CMD_PUBLISH         = "PUBLISH"
)
